//
//  AccountProtectionTableViewCell_1.m
//  fxxiaoke
//
//  Created by 鞠超 on 16/9/12.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "AccountProtectionTableViewCell_1.h"

@implementation AccountProtectionTableViewCell_1

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    self.image_tel = [[UIImageView alloc] init];
    self.image_tel.image = [UIImage imageNamed:@"TEL_pic.png"];
    [self.contentView addSubview:self.image_tel];
    
    self.name = [[UILabel alloc] init];
    self.name.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.name];
    
    self.time = [[UILabel alloc] init];
    self.time.textColor = [UIColor grayColor];
    self.time.font = [UIFont systemFontOfSize:15.0f];
    [self.contentView addSubview:self.time];
    
    self.view_Line = [[UIView alloc] init];
    self.view_Line.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_Line];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.image_tel.frame = CGRectMake(15, 10, 20, 20);
    
    self.name.frame = CGRectMake(CGRectGetMaxX(self.image_tel.frame) + 10, 10, SCREEN_WIDTH - CGRectGetMaxX(self.image_tel.frame) - 20, 20);
    
    self.time.frame = CGRectMake(15, CGRectGetMaxY(self.image_tel.frame) + 10, SCREEN_WIDTH - 30, 15);
    
    self.view_Line.frame = CGRectMake(15, 64, SCREEN_WIDTH - 15, 1);
}




















@end
